<?php
session_start();
require_once 'header.php';
function __autoload($className)
	{
    	require_once('class/' . $className . '.class.php');
	}
	$balance=0;
if(session::is_seller()==true)
{
	$UserId=session::getuserid();
	$getAgentClass=database::LimitQuery("agent",array(
	'select' => 'agent_class',
	'condition' => array(
	'user_id' => $UserId
	)
	));
	if(!empty($getAgentClass))
	{
		$agentClass=$getAgentClass[0]['agent_class'];
	}
	if($agentClass=='keyvnc')
	{
		$balance=keyvnc::getBalance();
	}
	else if($agentClass=='mrhieu')
	{
		$balance=mrhieu::getBalance();
	}
	else if($agentClass=='vnwcus')
	{
		$balance=Vnwcus::getbalance();
	}
	else if($agentClass=='dimitry')
	{
		$balance=dimitry::getbalance();
	}
}

echo "<font color=red >Your Balance: ".$balance."</font>";
?>